package com.example.demo.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by Hy on 2018/8/21.
 */
@Entity
@Table(name = "order_refund")
public class OrderRefund implements Serializable{
    @Id
    @Column(name = "refund_id")
    private String refundId;//退款号
    @Column(name = "order_id")
    private String orderId;//订单号
    @Column(name = "money")
    private float money;//退款金额
    @Column(name = "account")
    private String account;//退款账户
    @Column(name = "reason")
    private String reason;//退款原因
    @Column(name = "refund_date", insertable = false, updatable = false)
    private String refundDate;//退款时间

    public OrderRefund() {
    }

    public OrderRefund(String refundId, String orderId, float money, String account, String reason, String refundDate) {
        this.refundId = refundId;
        this.orderId = orderId;
        this.money = money;
        this.account = account;
        this.reason = reason;
        this.refundDate = refundDate;
    }

    public String getRefundId() {
        return refundId;
    }

    public void setRefundId(String refundId) {
        this.refundId = refundId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public float getMoney() {
        return money;
    }

    public void setMoney(float money) {
        this.money = money;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getRefundDate() {
        return refundDate;
    }

    public void setRefundDate(String refundDate) {
        this.refundDate = refundDate;
    }

    @Override
    public String toString() {
        return "OrderRefund{" +
                "refundId='" + refundId + '\'' +
                ", orderId='" + orderId + '\'' +
                ", money='" + money + '\'' +
                ", account='" + account + '\'' +
                ", reason='" + reason + '\'' +
                ", refundDate='" + refundDate + '\'' +
                '}';
    }
}
